﻿using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace HobSoft.SoccerBet2014.Domain.Core
{
    using Common.Queryable;
    using Models.Core;
    public interface IReadonlyRepository<T> : IRepository where T : class, IModel
    {
        T Get(params object[] key);
        IList<T> GetMany(Expression<Func<T, bool>> predicate);
        IList<T> GetMany(Expression<Func<T, bool>> predicate, params ISortExpression<T>[] sortExpression);
    }
}
